From 9c0c3f9ece460348150144b41daef710da322018 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 25 Jul 2014 21:10:43 -0700 Subject: [PATCH] Inherit stdin when using `cargo run` Previously a pipe was made which could mess with stdin like in #267. Closes #267 --- src/cargo/util/process_builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cargo/util/process_builder.rs b/src/cargo/util/process_builder.rs index fff9cd63b..a0322e380 100644 --- a/src/cargo/util/process_builder.rs +++ b/src/cargo/util/process_builder.rs @@ -56,7 +56,8 @@ impl ProcessBuilder { pub fn exec(&self) -> Result<(), ProcessError> { let mut command = self.build_command(); command.stdout(InheritFd(1)) - .stderr(InheritFd(2)); + .stderr(InheritFd(2)) + .stdin(InheritFd(0)); let msg = || format!("Could not execute process `{}`", self.debug_string()); -- 2.30.2